package com.zimi.mapper;

import com.zimi.model.SysOrgDuty;
import com.zimi.model.SysOrgDutyVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysOrgDutyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysOrgDuty record);

    int insertSelective(SysOrgDuty record);

    @Select("SELECT LAST_INSERT_ID() as id")
    int lastInsertId();

    SysOrgDuty selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysOrgDuty record);

    int updateByPrimaryKey(SysOrgDuty record);

    List<SysOrgDuty> selectAll(SysOrgDuty record);

    int updateSysOrgDutyBatch(SysOrgDutyVO record);
}